#include<stdio.h>
#include<math.h>
#include<stdlib.h>

double P[235][235] = {0};
double D[235] = {0};
//double F[235] = {0};

double main()
{
	int j, i;
	for (j = 0; j <= 171; j++)
	{
		P[172][j] = 1 - fabs(j - 85.5) / 85.5; 
	}

	for (i = 171; i >= 1; i--)
	{
		for (j = 1; j <= i; j++)
		{
			P[i][j] = P[i + 1][j + 1];
		}
	}

	printf("D,%lf\n", D[230]);   //  test
	
	for (i = 173; i < 235; i++)
	{
		for (j = 1; j < 235; j++)
		{
			P[i][j] =1; 	
		}
	}

	printf("D,%lf\n", D[230]);   //  test

}